home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Path: cs.vu.nl!jalten
- From: jalten@cs.vu.nl (Alten JP)
- Subject: Re: Check for dll
- Nntp-Posting-Host: kits.cs.vu.nl
- References: <31063440.2CDE@ubs.ch>
- Sender: news@cs.vu.nl
- Organization: Fac. Wiskunde & Informatica, VU, Amsterdam
- Date: Thu, 25 Jan 1996 11:02:11 GMT
- X-Newsreader: TIN [version 1.2 PL2]
- Message-ID: <DLqHBn.6GK.0.-s@cs.vu.nl>
-
- Daniel Ponti (daniel.ponti@ubs.ch) wrote:
- : Is there a possibility to check for a specific dll in the memory?
- : I have not found a windows api function. There is only one to free
- : a dll by its handler (FreeLibrary) and one to load a dll
- : (LoadLibrary) but no one for check a dll already in the memory.
-
- Use ModuleFirst/ModuleNext to walk through the list of loaded
- modules, and see if it's there. You can use the MODULEENTRY
- struct to see how many times (MODULEENTRY::wcUsage) it is
- loaded. I think you'll have to include <toolhelp.h> to access
- the function.
-
- You might get more responses in the windows.programmers groups
- though.
-
- Have fun,
-
- Jelle Paul
-
- +-------------------------------------------------------+
- | Jelle Paul Alten | jalten@cs.vu.nl |
- | Vrije Universiteit Amsterdam | |
- +-------------------------------------------------------+
-